<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>

<html>
<head>
    <title>登录页</title>
    <%--echart线图、柱状图、饼图等各种图型库 cdn--%>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
    <%--jquery cdn--%>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
</head>
<body>

<form action="/list.do">
    用户名<input name="name" value="${query.name}"><br>
    面试反馈
    <select name="backId">
        <option value="">请选择</option>
        <c:forEach items="${backList}" var="b">
            <option   ${query.backId == b.id ? 'selected':''}   value="${b.id}">${b.name}</option>
        </c:forEach>
    </select><br>
    <input type="submit" value="查询">


    <table>
        <tr>
            <td>id</td>
            <td>姓名</td>
            <td>反馈</td>
            <td>来源</td>
            <td>状态</td>
            <td>手机号</td>
        </tr>
        <c:forEach items="${pageInfo.list}" var="l">
            <tr>
                <td>${l.id}</td>
                <td>${l.name}</td>
                <td>${l.backName}</td>
                <td>${l.source}</td>
                <td>${l.status}</td>
                <td>${l.phone}</td>
            </tr>
        </c:forEach>
        <tr>
            <td><button name="pageNum" value="1">首页</button></td>
            <td><button name="pageNum" value="${pageInfo.prePage}">上页</button></td>
            <td><button name="pageNum" value="${pageInfo.nextPage}">下页</button></td>
            <td><button name="pageNum" value="${pageInfo.pages}">尾页</button></td>
        </tr>
    </table>
</form>


</body>
</html>